INTERESTING LINKS
Puzzles
Mathematics
Blogs
Questech 11.1 - Solutions
0. The increasing sequence 1, 3, 4, 9, 10, 12, 13… consists of all those positive integers which are powers of 3 or sums of distinct powers of 3. Find the 100th term of the sequence.
Solution: We observe that when we write 9 we have 22 numbers in the list, when we write 27, that we have 23 numbers, and so on. When we write 729 we'll have 64 numbers in the list. Now we add the 36th number from the previous list in order to get an increasing sequence. The 100th number is 729 + 243 + 9 = 981.
1. Consider N petrol bunks on a circular highway. A car is to start with zero petrol from one of the bunks and travel around the circle, returning to its original point. The petrol is distributed among the bunks in such a way that the total amount of petrol available in all the bunks is exactly sufficient for the car to make a single loop of the highway.
Prove that there always exists a choice of the starting bunk such that the car will be able to complete the loop.Solution (Inductive):
Fix a direction, say clockwise. Induction: Check that the cases n=1 and n=2 have a solution. Now assume that it is true for n<=k, and check the case n = k+1. Number the stations P1, ..., Pk, Pk+1 (clockwise).
Let the petrol quantity required for the diistance between Pi and Pi+1 be di.
(dk+1 = d1). If, for all i, Pi >= di, we have no problem. If not, assume that, for some j, Pj < dj. Now merge Pj-1 and Pj, so that the stations are P1, P2, ..., Pj-1, Pj+1, and so on. Update the distances accordingly.
Now, assume there's a clockwise solution. We need to check the (k+1) case
Pj-1 -- dj-1 --> Pj -- dj --> Pj+1.
You know that the car can run a distance of dj-1 + dj with a quantity of petrol Pj-1 + Pj + what was remaining after the previous bunk. But Pj <dj. So the quantity of petrol Pj-1 + petrol remaining will take the car at least to the bunk Pj.
2. There are N parking slots numbered 1 to N. There are N cars, labeled C1 to CN. Given a sequence {a1, a2,…,aN | 1=< ai <=N; for 1 <= i <= n}, car Ci goes to the slot numbered ai and parks the car there if it is not already occupied, otherwise it parks in the next higher unoccupied slot. It can happen that the car never gets to park at any slot.
Find the number of sequences {a1, a2,…,aN | 1=< ai <=N; for 1 <= i <= n}, such that all cars are parked in some slot.Solution: Consider N + 1 parking slots arranged on a circle. Let the first slot come after the N + 1th slot. Now, given any sequence of N numbers satisfying the constraints of the problem, a valid solution can be obtained. One slot out of N + 1 slots will be unoccupied. There are (N + 1)N solutions to this new problem. Given any solution to this N + 1 slots problem, we can reduce it to an N slot problem by cyclically permuting the sequence so that the unoccupied slot is always the N + 1th slot. Thus, there are (N + 1)N/(N + 1) = (N + 1)N-1 solutions.
PREVIOUS PROBLEMS
In this section, you can browse through the problems that have appeared in previous issues of InsIghT, get hints and see the solutions.